home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / sgprop14.zip / GETPROP.TXT < prev    next >
Text File  |  1994-10-26  |  4KB  |  109 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                 Get Property v1.4 for Novell Netware 3.x.
  9.  
  10.  
  11.               By K.F.Soft, Denmark, Copyright October 1994.
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Usage of this program is free. The program may not be sold. It can be 
  20. distributed in the original ZIP-file at no charge.
  21. GetProp is distributed as is, without any express or implied warranty.
  22. Portions of GetProp Copyright (C) 1983-1990 Novell Inc. All rights reserved.
  23.  
  24. If you decide to use this program please send me a little note with the 
  25. following information:
  26.   Type of organization.
  27.   Number of servers.
  28.   Number of users.
  29.   Number of workstations.
  30. Thanks in advance!
  31.  
  32. Comments, bugs and suggestions to kf@mmf.ruc.dk
  33.                             Purpose
  34.  
  35. Gets the content of Netware bindery properties into DOS environment 
  36. variables. Should only be used with string properties (names etc.).
  37.  
  38.  
  39.                             Syntax
  40.  
  41. GETPROP options objectname propertyname[(ix)] [var]
  42. GETPROP options [servername/]objectname:propertyname[(ix)] [var]
  43. GETPROP options [servername/]objectname !OI [var]
  44. GETPROP options [servername/]objectname !ON [var]
  45.  
  46. Options
  47. /Q    Quiet mode. Nothing will be displayed.
  48.  
  49. /O:x  Object type. Both object type numbers and abbreviations can
  50.       be used for the x parameter. See below for the possible values. 
  51.       If no object type is given, user type is assumed.
  52.  
  53. servername   if the object is on another server than the current one 
  54.              the server parameter can be used to select the server.
  55.  
  56. objectname   is the name of the object owning the property. 
  57.              A - refers to the currently logged in object.
  58.              Instead of the object name you can use the object ID in
  59.              hex notation preceding it with \x, ie. \x68000003
  60.  
  61. propertyName is the name of the property to be read
  62.              A number ix inside () after the propertyname indicates that 
  63.              the property is a string array. ix is the number of the 
  64.              string referred to. A string array can consist of up to 20 
  65.              strings with a total length of 980 bytes (including zero's).
  66.              !ON as propertyname tells SetProperty to read the objects 
  67.              name to an environment variable.
  68.              !OI as propertyname tells SetProperty to read the objects 
  69.              ID to an environment variable.
  70.  
  71. The value of the property will be written to an environment variable 
  72. with the same name as the propertyname (or OID or ONAME) or to a
  73. variable with the name var if this parameter is given.
  74.  
  75. The different object types are :
  76.   No Abbreviation  Description
  77.    1 us            User
  78.    2 ug            User group
  79.    3 pq            Print queue
  80.    5 js            Job Server
  81.    6 gw            Gateway
  82.    7 ps            Print server
  83.    8 aq            Archive queue
  84.    9 as            Archive server
  85.   10 jq            Job queue
  86.   11 ad            Administration
  87.  
  88.                             Examples
  89.  
  90. GETPROP /o:ug EVERYONE IDENTIFICATION
  91.         Stores the full name (IDENTIFICATION) for group (OT=2) EVERYONE 
  92.         to the environment variable IDENTIFICATION.
  93.  
  94. GETPROP - M
  95.         Stores an environment variable M with the value of the property 
  96.         m for the current logged in user.
  97.  
  98. GETPROP S1/MIKE:MAIL_OPTIONS(1)
  99.         Stores the Charon & Mercury forward address for user MIKE
  100.         on server S1 in the environment variable MAIL_OPTIONS.
  101.  
  102. GETPROP S2/- !OI USER_ID
  103.         Stores the Object ID for the current user on server S2 in the
  104.         variable OID.
  105.  
  106. GETPROP \x68000003 !ON ONAME
  107.         Stores the object name of the object with bindery ID 68000003h
  108.         in the variable ONAME.
  109.